package club.emergency.wechat.common.response;

/**
 * Create with IntelliJ IDEA
 * Project Name: business
 * Package Name: club.emergency.wechat_api.common.response
 * Date: 2018/11/12
 *
 * @author: 快乐的小菌菌
 * Description: 返回状态码，目前是consumer和provider共同使用
 */
public class StatusCode {

    /**
     * 数据存储成功状态码
     */
    public static final int DB_SAVE_OK = 20000;

    /**
     * 数据存储失败状态码
     */
    public static final int DB_SAVE_ERROR = 20001;

    /**
     * 数据修改成功状态码
     */
    public static final int DB_MODIFY_OK = 20002;

    /**
     * 数据修改失败状态码
     */
    public static final int DB_MODIFY_ERROR = 20003;

    /**
     * 删除数据成功状态码
     */
    public static final int DB_REMOVE_OK = 20004;

    /**
     * 删除数据失败状态码
     */
    public static final int DB_REMOVE_ERROR = 20005;

    /**
     * 查询数据成功状态码
     */
    public static final int DB_SEARCH_OK = 20006;

    /**
     * 查询数据失败状态码
     */
    public static final int DB_SEARCH_ERROR = 20007;

    /**
     * redis获取键值成功状态码
     */
    public static final int REDIS_GET_OK = 40000;

    /**
     * redis储存键值失败状态码
     */
    public static final int REDIS_SAVE_ERROR = 40001;

    /**
     * redis储存键值成功状态码
     */
    public static final int REDIS_SAVE_OK = 40002;

    /**
     * redis获取键值失败状态码
     */
    public static final int REDIS_GET_ERROR = 40002;

    /**
     * 短信发送成功状态码
     */
    public static final int SEND_SMS_OK = 50000;

    /**
     * 短信发送失败状态码
     */
    public static final int SEND_SMS_ERROR = 50001;

    /**
     * 短信验证成功状态码
     */
    public static final int CONFIRM_VERIFICATION_OK = 50002;

    /**
     * 短信验证失败状态码
     */
    public static final int CONFIRM_VERIFICATION_ERROR = 50003;

    /**
     * 短信验证码超时状态码
     */
    public static final int CONFIRM_VERIFICATION_EXPIRE = 50004;

    /**
     * excel分析成功状态码
     */
    public static final int EXCEL_ANALYSIS_OK = 60000;

    /**
     * excel分析失败状态码
     */
    public static final int EXCEL_ANALYSIS_ERROR = 60001;

    /**
     * 登录成功状态码
     */
    public static final int LOGIN_OK = 70000;

    /**
     * 登录失败状态码
     */
    public static final int LOGIN_ERROR = 70001;

    /**
     * 身份非法不能调用接口！
     */
    public static final int AUTHORIZATION_ILLEGAL = 70002;

    /**
     * Token过期不能调用接口！
     */
    public static final int AUTHORIZATION_EXPIRED = 70003;

    /**
     * token错误，调用接口失败接口！
     */
    public static final int AUTHORIZATION_FAIL = 70004;

    /**
     * refreshToken过期,需要更新tonken
     */
    public static final int AUTHORIZATION_EXPIRED_NEED_UPDATE = 70004;

    /**
     * 更新token成功
     */
    public static final int AUTHORIZATION_UPDATE_OK = 70005;

    /**
     * 调用超时
     */
    public static final int INVOKE_TIMEOUT = 80000;

    /**
     * 上传文件成功
     */
    public static final int UPLOAD_FILE_OK = 90000;

    /**
     * 上传文件失败
     */
    public static final int UPLOAD_FILE_ERROR = 90001;

    /**
     * 删除文件成功
     */
    public static final int DELETE_FILE_OK = 90002;

    /**
     * 删除文件失败
     */
    public static final int DELETE_FILE_ERROR = 90003;

    /**
     * 文件过大
     */
    public static final int UPLOAD_FILE_SIZE_OVERFLOW = 90004;

    /**
     * 请求微信接口成功
     */
    public static final int REQUEST_WECHAT_OK = 100000;

    /**
     * 请求微信接口失败
     */
    public static final int REQUEST_WECHAT_ERROR = 100001;

    /**
     * 请求参数错误
     */
    public static final int REQUEST_PARAMS_GET_ERROR = 100002;

    /**
     * 参数检查接口成功
     */
    public static final int CHECK_OK = 200000;

    /**
     * 参数检查接口成功
     */
    public static final int CHECK_ERROR = 200001;
}
